package model.command;

import model.Command;
import model.Reference;
import controller.RuntimeState;

public class Branch extends Command {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7365545227497703129L;

	public Branch() {
		super();
	}

	@Override
	public int getParameterCount() {
		return 1;
	}

	@Override
	public void run(RuntimeState runtimeState, Reference... refs) {
		runtimeState.setPointer(refs[0].getAddress());
	}

	@Override
	public String getCommandName() {
		return "BRANCH";
	}

}
